﻿<!DOCTYPE HTML>
<%@page contentType="text/html; charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%String path = request.getContextPath();%>
<head>
    <script type="text/javascript" async="" src="/static/web/js/conversion.js"></script>
    <script src="/static/web/js/allmobilize.min.js" charset="utf-8" id="allmobilize"></script>
    <style type="text/css"></style>
    <meta content="no-siteapp" http-equiv="Cache-Control">
    <link media="handheld" rel="alternate">
    <!-- end 云适配 -->
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    <title>拉勾网-最专业的互联网招聘平台</title>


    <!-- <div class="web_root"  style="display:none">http://www.lagou.com</div> -->
    <script type="text/javascript">
        var ctx = "http://www.lagou.com";
        console.log(1);
    </script>
    <link href="http://www.lagou.com/images/favicon.ico" rel="Shortcut Icon">
    <link href="/static/web/css/style.css" type="text/css" rel="stylesheet">
    <link href="/static/web/css/external.min.css" type="text/css" rel="stylesheet">
    <link href="/static/web/css/popup.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="/static/web/js/jquery.1.10.1.min.js"></script>
    <script src="/static/web/js/jquery.lib.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="/static/web/js/ajaxfileupload.js"></script>
    <script src="/static/web/js/additional-methods.js" type="text/javascript"></script>
    <!--[if lte IE 8]>
    <script type="text/javascript" src="/static/web/js/excanvas.js"></script>
    <![endif]-->
    <script type="text/javascript">
        var youdao_conv_id = 271546;
    </script>
    <script src="/static/web/js/conv.js" type="text/javascript"></script>
    <script src="/static/web/js/ajaxCross.json" charset="UTF-8"></script>
</head>
<body>
<jsp:include page="/zhuang/include/header"></jsp:include><!-- end #header -->
<jsp:include page="/WEB-INF/zhuang/company/sidebar.jsp"></jsp:include><!-- end .sidebar -->
        <div class="content">
            <dl class="company_center_content">
                <dt>
                    <h1>
                        <em></em>
                        不合适简历 <span>（共<i class="count" style="color:#fff;font-style:normal">${requestScope.pageInfo.total}</i>份）</span></h1>
                </dt>
                <dd>
                    <form action="haveRefuseResumes.jsp" method="get" id="filterForm">
                        <div class="filter_actions ">
                            <a id="resumeDelAll" href="javascript:;">删除</a>

                        </div><!-- end .filter_actions -->
                        <div class="filter_options  dn ">

                            <input type="hidden" value="0" name="filterStatus" id="filterStatus">
                            <input type="hidden" value="" name="positionId" id="positionId">
                        </div><!-- end .filter_options -->
                        <c:forEach items="${requestScope.delivers}" var="deliver">
                        <ul class="reset resumeLists">
                            <li data-id="1686182" class="onlineResume">
                                <label class="checkbox">
                                    <input type="checkbox">
                                    <i></i>
                                </label>
                                <div class="resumeShow">
                                    <a title="预览在线简历" target="_blank" class="resumeImg"
                                       href="resumeView.html?deliverId=1686182">
                                        <img src="/static/uploadImg/${deliver.resume.userinfo.headImage}">
                                    </a>
                                    <div class="resumeIntro">
                                        <h3 class="unread">
                                            <a target="_blank" title="预览jason的简历"
                                               href="${pageContext.request.contextPath}/zhuang/company/preview?userId=${deliver.resume.id}&deliverId=${deliver.id}&state=${deliver.state}">
                                                    ${deliver.resume.name}
                                            </a>
                                            <em></em>
                                        </h3>
                                        <span class="fr">投递时间：<fmt:formatDate value="${deliver.inputTime}" pattern="yyyy-MM-dd HH:mm:ss"/></span>
                                        <div>
                                            ${deliver.resume.name} / ${deliver.resume.userinfo.sex} / ${deliver.resume.education.degree.title} / ${deliver.resume.exRequire.require} / ${deliver.resume.city.cityName} <br>
                                            ${deliver.resume.workEx.jobName} · ${deliver.resume.workEx.companyName} | ${deliver.resume.education.degree.title} · ${deliver.resume.education.school}
                                        </div>
                                        <div class="jdpublisher">
											<span>
												应聘职位：<a title="随便写" target="_blank"
                                                        href="http://www.lagou.com/jobs/149594.html">${deliver.job.name}</a>
											</span>
                                        </div>
                                    </div>
                                    <div class="links">
                                        <a class="resume_de" href="javascript:void(0)" data-id="${deliver.id}">删除</a>
                                    </div>
                                </div>
                            </li>
                        </ul><!-- end .resumeLists -->
                        </c:forEach>
                    </form>

                    <div class="Pagination">
                        ${requestScope.pageInfo.total}条
                        ${requestScope.pageInfo.pages}页
                        <a href="${pageContext.request.contextPath}/zhuang/company/haveRefuseResumes?pagernum=1">首页 </a>

                        <c:if test="${requestScope.pageInfo.pageNum gt 1}">
                            <a href="${pageContext.request.contextPath}/zhuang/company/haveRefuseResumes?pagernum=${requestScope.pageInfo.pageNum-1}">上一页</a>
                        </c:if>


                        <c:forEach begin="1" end="${requestScope.pageInfo.pages}" var="i">

                            <a href="${pageContext.request.contextPath}/zhuang/company/haveRefuseResumes?pagernum=${i}" data-pagenum="${i}"
                                    <c:if test="${i eq requestScope.pageInfo.pageNum}"> class="current" </c:if>>${i}</a>
                        </c:forEach>


                        <c:if test="${requestScope.pageInfo.pageNum lt requestScope.pageInfo.pages}">
                            <a href="${pageContext.request.contextPath}/zhuang/company/haveRefuseResumes?pagernum=${requestScope.pageInfo.pageNum+1}">下一页</a>
                        </c:if>
                        <a href="${pageContext.request.contextPath}/zhuang/company/haveRefuseResumes?pagernum=${requestScope.pageInfo.pages}">尾页 </a>
                        ${requestScope.pageInfo.pageNum}/${requestScope.pageInfo.pages}页
                    </div>
                </dd>
            </dl><!-- end .company_center_content -->
        </div><!-- end .content -->

        <!------------------------------------- 弹窗lightbox ----------------------------------------->
        <div style="display:none;">
            <!--通知面试弹窗-->
            <div style="overflow:auto;" class="popup" id="noticeInterview">
                <form id="noticeInterviewForm">
                    <table width="100%" class="f16">
                        <tbody>
                        <tr>
                            <td width="20%" align="right" class="c9">收件人</td>
                            <td width="80%">
                                <span class="c9" id="receiveEmail"></span>
                                <input type="hidden" value="" name="email">
                            </td>
                        </tr>
                        <tr>
                            <td align="right"><span class="redstar">*</span>主题</td>
                            <td>
                                <input type="text" placeholder="公司：职位名称面试通知" name="subject">
                            </td>
                        </tr>
                        <tr>
                            <td align="right"><span class="redstar">*</span>面试时间</td>
                            <td>
                                <input type="text" id="datetimepicker" name="interTime" class="hasDatepicker">
                            </td>
                        </tr>
                        <tr>
                            <td align="right"><span class="redstar">*</span>面试地点</td>
                            <td>
                                <input type="text" name="interAdd">
                            </td>
                        </tr>
                        <tr>
                            <td align="right">联系人</td>
                            <td>
                                <input type="text" name="linkMan">
                            </td>
                        </tr>
                        <tr>
                            <td align="right"><span class="redstar">*</span>联系电话</td>
                            <td>
                                <input type="text" name="linkPhone">
                            </td>
                        </tr>
                        <tr>
                            <td valign="top" align="right">补充内容</td>
                            <td>
                                <textarea name="content"></textarea>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <input type="submit" value="发送" class="btn">
                                <a class="emailPreview" href="javascript:;">预览</a>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                    <input type="hidden" value="" name="name">
                    <input type="hidden" value="" name="positionName">
                    <input type="hidden" value="" name="companyName">
                    <input type="hidden" value="" name="deliverId">
                </form>
            </div><!--/#noticeInterview-->

            <!--预览通知面试弹窗-->
            <div class="popup" id="noticeInterviewPreview">
                <div class="f18">拉勾网：产品经理面试通知</div>
                <div class="c9">发给：<span>vivi@lagou.com</span></div>
                <div id="emailText"></div>
                <input type="button" value="提交" class="btn fl">
                <a title="通知面试" class="inline fl cboxElement" href="#noticeInterview">返回修改</a>
            </div><!--/#noticeInterviewPreview-->

            <!--通知面试成功弹窗-->
            <div class="popup" id="noticeInterviewSuccess">
                <table width="100%" class="f16">
                    <tbody>
                    <tr>
                        <td align="center" class="f16">
                            面试通知已发送成功<br>
                            该简历已进入“已通知面试简历”列表
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            <input type="button" value="确认" class="btn">
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div><!--/#noticeInterviewSuccess-->

            <!--转发简历弹窗-->
            <div class="popup" id="forwardResume">
                <form id="forwardResumeForm">
                    <table width="100%" class="f16">
                        <tbody>
                        <tr>
                            <td width="20%" align="right">收件人</td>
                            <td width="80%">
                                <input type="text" placeholder="最多可添加两个邮箱，用“；”隔开" id="recipients" name="recipients">
                                <span id="forwardResumeError" style="display:none" class="beError"></span>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">主题</td>
                            <td>
                                <input type="text" value="" name="title">
                            </td>
                        </tr>
                        <tr>
                            <td valign="top" align="right">正文</td>
                            <td>
                                <textarea name="content"></textarea>
                                <span style="display:none;" class="beError error"></span>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <input type="submit" value="发送" class="btn">
                                <a class="emial_cancel" href="javascript:;">取消</a>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                    <input type="hidden" value="" name="resumeKey">
                    <input type="hidden" value="" name="positionId">
                    <input type="hidden" value="" name="deliverId">
                </form>
            </div><!--/#forwardResume-->

        <!--/#forwardResumeSuccess-->

            <!--确认不合适弹窗-->
           <!--/#confirmRefuse-->

         <!--/#refuseMailSuccess-->
        </div>
        <!------------------------------------- end ----------------------------------------->
        <script src="/static/web/js/jquery.ui.datetimepicker.min.js" type="text/javascript"></script>
        <script src="/static/web/js/received_resumes.min.js" type="text/javascript"></script>
        <script>
        </script>
        <div class="clear"></div>
        <input type="hidden" value="9421e33d3091428796fec127b07b6c5b" id="resubmitToken">
        <a rel="nofollow" title="回到顶部" id="backtop"></a>
    </div><!-- end #container -->
</div><!-- end #body -->
<div id="footer">
    <div class="wrapper">
        <a rel="nofollow" target="_blank" href="about.html">联系我们</a>
        <a target="_blank" href="http://www.lagou.com/af/zhaopin.html">互联网公司导航</a>
        <a rel="nofollow" target="_blank" href="http://e.weibo.com/lagou720">拉勾微博</a>
        <a rel="nofollow" href="javascript:void(0)" class="footer_qr">拉勾微信<i></i></a>
        <div class="copyright">&copy;2013-2014 Lagou <a
                href="http://www.miitbeian.gov.cn/state/outPortal/loginPortal.action"
                target="_blank">京ICP备14023790号-2</a></div>
    </div>
</div>

<script src="/static/web/js/core.min.js" type="text/javascript"></script>
<script src="/static/web/js/popup.min.js" type="text/javascript"></script>

<!--  -->

<script type="text/javascript">
    $(function () {
        $('#noticeDot-1').hide();
        $('#noticeTip a.closeNT').click(function () {
            $(this).parent().hide();
        });
    });
    var index = Math.floor(Math.random() * 2);
    var ipArray = new Array('42.62.79.226', '42.62.79.227');
    var url = "ws://" + ipArray[index] + ":18080/wsServlet?code=314873";
    var CallCenter = {
        init: function (url) {
            var _websocket = new WebSocket(url);
            _websocket.onopen = function (evt) {
                console.log("Connected to WebSocket server.");
            };
            _websocket.onclose = function (evt) {
                console.log("Disconnected");
            };
            _websocket.onmessage = function (evt) {
                //alert(evt.data);
                var notice = jQuery.parseJSON(evt.data);
                if (notice.status[0] == 0) {
                    $('#noticeDot-0').hide();
                    $('#noticeTip').hide();
                    $('#noticeNo').text('').show().parent('a').attr('href', ctx + '/mycenter/delivery.jsp');
                    $('#noticeNoPage').text('').show().parent('a').attr('href', ctx + '/mycenter/delivery.jsp');
                } else {
                    $('#noticeDot-0').show();
                    $('#noticeTip strong').text(notice.status[0]);
                    $('#noticeTip').show();
                    $('#noticeNo').text('(' + notice.status[0] + ')').show().parent('a').attr('href', ctx + '/mycenter/delivery.jsp');
                    $('#noticeNoPage').text(' (' + notice.status[0] + ')').show().parent('a').attr('href', ctx + '/mycenter/delivery.jsp');
                }
                $('#noticeDot-1').hide();
            };
            _websocket.onerror = function (evt) {
                console.log('Error occured: ' + evt);
            };
        }
    };
    CallCenter.init(url);
</script>

<div id="cboxOverlay" style="display: none;"></div>
<div id="colorbox" class="" role="dialog" tabindex="-1" style="display: none;">
    <div id="cboxWrapper">
        <div>
            <div id="cboxTopLeft" style="float: left;"></div>
            <div id="cboxTopCenter" style="float: left;"></div>
            <div id="cboxTopRight" style="float: left;"></div>
        </div>
        <div style="clear: left;">
            <div id="cboxMiddleLeft" style="float: left;"></div>
            <div id="cboxContent" style="float: left;">
                <div id="cboxTitle" style="float: left;"></div>
                <div id="cboxCurrent" style="float: left;"></div>
                <button type="button" id="cboxPrevious"></button>
                <button type="button" id="cboxNext"></button>
                <button id="cboxSlideshow"></button>
                <div id="cboxLoadingOverlay" style="float: left;"></div>
                <div id="cboxLoadingGraphic" style="float: left;"></div>
            </div>
            <div id="cboxMiddleRight" style="float: left;"></div>
        </div>
        <div style="clear: left;">
            <div id="cboxBottomLeft" style="float: left;"></div>
            <div id="cboxBottomCenter" style="float: left;"></div>
            <div id="cboxBottomRight" style="float: left;"></div>
        </div>
    </div>
    <div style="position: absolute; width: 9999px; visibility: hidden; display: none;"></div>
</div>
<div class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" id="ui-datepicker-div"></div>
</body>
</html>
<script>
    var path = "${pageContext.request.contextPath}";
    $(function () {
        $(".resume_de").click(function () {
            var id = $(this).data("id");

            var ansswer = confirm("是否确认为不合适？");

            if (ansswer) {
                $.get(path + "/zhuang/company/removed",
                    {id: id},
                    function (data) {
                        console.log(data);
                        $(this).parent().parent().parent().remove();
                    }.bind(this));
                var count = $(".count").html()-1;
                $(".count").html(count);
            }
            else {
                return false;
            }

        });
    });
</script>